CFLAGS=-g

SOURCES=approx.c boyermor.c brute1.c brute2.c metaphon.c minigrep.c \
		msrch.c soundex.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

approx: approx.c 
	${CC} ${CFLAGS} -o $@ $<
boyermor: boyermor.c 
	${CC} ${CFLAGS} -o $@ $<
brute1: brute1.c 
	${CC} ${CFLAGS} -o $@ $<
brute2: brute2.c 
	${CC} ${CFLAGS} -o $@ $<
metaphon: metaphon.c 
	${CC} ${CFLAGS} -o $@ $<
minigrep: minigrep.c 
	${CC} ${CFLAGS} -o $@ $<
msrch: msrch.c 
	${CC} ${CFLAGS} -o $@ $<
soundex: soundex.c 
	${CC} ${CFLAGS} -o $@ $<
    
clean:
	rm -rf ${PROGRAMS}
